﻿using System;
using Autodesk.Revit.ApplicationServices;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;

namespace Assist
{
	[Regeneration(RegenerationOption.Manual)]
	[Transaction(TransactionMode.Manual)]
	public class YJKCommandManual : IExternalCommand
	{
		public Result Execute(ExternalCommandData cmdData, ref string message, ElementSet elements)
		{
			this.m_uiApp = cmdData.Application;
			this.m_uiDoc = this.m_uiApp.ActiveUIDocument;
			this.m_app = this.m_uiApp.Application;
			this.m_doc = this.m_uiDoc.Document;
			return this.YJKExcute(cmdData, ref message, elements);
		}

		protected virtual Result YJKExcute(ExternalCommandData cmdData, ref string message, ElementSet elements)
		{
			return Autodesk.Revit.UI.Result.Succeeded;
		}

		protected UIApplication m_uiApp;

		protected UIDocument m_uiDoc;

		protected Autodesk.Revit.ApplicationServices.Application m_app;

		protected Document m_doc;

		protected static double precision = 1E-06;
	}
}
